from django.contrib import admin
from . import models

# admin注册自定义User表：密文操作密码
from django.contrib.auth.admin import UserAdmin
class UserInfo(UserAdmin):
    add_fieldsets = (
        (None, {
            'classes': ('wide',),
            # 添加用户界面可操作的字段
            'fields': ('username', 'password1', 'password2', 'mobile', 'email',"vip_type", 'icon', 'is_staff', 'is_active'),
        }),
    )

# Register your models here.
admin.site.register(models.User, UserInfo)